<?php /* Smarty version Smarty-3.1.14, created on 2014-12-11 16:55:12
         compiled from "..\templates\products\detail.tpl" */ ?>
<?php /*%%SmartyHeaderCode:942854896a009970b5-65641202%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1722337a6103c882b501e4c60c9d56566995a9e4' => 
    array (
      0 => '..\\templates\\products\\detail.tpl',
      1 => 1415260105,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '942854896a009970b5-65641202',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'read_product' => 0,
    'read_product_images' => 0,
    'product_image' => 0,
    'kq' => 0,
    'read_brand_product' => 0,
    'quantity' => 0,
    'list_size' => 0,
    'size' => 0,
    'percent' => 0,
    'comments' => 0,
    'list_review' => 0,
    'review' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_54896a00c06b59_69709883',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54896a00c06b59_69709883')) {function content_54896a00c06b59_69709883($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\wamp\\www\\shop_baby\\libraries\\smarty\\plugins\\modifier.date_format.php';
?><div id="column-left"> <?php echo $_smarty_tpl->getSubTemplate ("blocks/list_column_left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
 </div>
<div id="content">
<div class="breadcrumb"> <a href="index.html">Home</a> » <a href="category.html">Trang phục bé nam</a> » <a href="#">Giầy nâu dành cho bé nam</a> </div>
<h1><span class="h1-top">Giầy nâu dành cho bé nam</span></h1>
<div class="product-info">
  <div class="left">
    <div class="image"> <a href="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['read_product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['read_product']->value['image'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['title'];?>
" class="cloud-zoom" id='zoom1' rel="adjustX: 0, adjustY:0"> <img src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['read_product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['read_product']->value['image'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['title'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['name'];?>
" id="image" /></a>
      <div class="zoom"><a id="zoomer" class="colorbox" href="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['read_product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['read_product']->value['image'];?>
">+ Zoom</a></div>
    </div>
    <?php if ($_smarty_tpl->tpl_vars['read_product_images']->value!=null){?>
    <div class="image-additional">
      <div id="carousel-p">
        <ul class="jcarousel-skin-tfc">
          <?php  $_smarty_tpl->tpl_vars['product_image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product_image']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['read_product_images']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product_image']->key => $_smarty_tpl->tpl_vars['product_image']->value){
$_smarty_tpl->tpl_vars['product_image']->_loop = true;
?>
          <li> <a href="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['read_product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product_image']->value['image'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['title'];?>
" class="cloud-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['read_product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product_image']->value['image'];?>
' "> <img src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['read_product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product_image']->value['image'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['title'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['name'];?>
"  style="width:85px;height:85px"/></a> </li>
          <?php } ?>
        </ul>
      </div>
    </div>
    <?php }?> </div>
  <div class="right">
    <div class="description">
      <div class="price"> <span id="line_s"></span>
        <p class="wrap_price">
        <?php if (($_smarty_tpl->tpl_vars['read_product']->value['price_old']!=0)){?> 
        <span class="price-old"><?php echo number_format($_smarty_tpl->tpl_vars['read_product']->value['price_old']);?>
 đ</span>
        <?php }?> 
        <span class="price-new"><?php echo number_format($_smarty_tpl->tpl_vars['read_product']->value['price_new']);?>
 đ</span></p>
        <?php if (($_smarty_tpl->tpl_vars['read_product']->value['price_old']!=0)){?>
        <p><span class="price-tax"><?php if ($_smarty_tpl->tpl_vars['read_product']->value['price_old']<$_smarty_tpl->tpl_vars['read_product']->value['price_new']){?>Tăng lên : <?php }else{ ?>Giảm được: <?php }?> <?php echo number_format($_smarty_tpl->tpl_vars['kq']->value);?>
 đ</span></p>
        <?php }?> </div>
    </div>
    <div class="desc2"> <span>Thương hiệu:</span> <a href="brands.html"><?php echo $_smarty_tpl->tpl_vars['read_brand_product']->value['name'];?>
</a><br />
      <span>Mã sản phẩm:</span><?php echo $_smarty_tpl->tpl_vars['read_product']->value['id'];?>
<br />
      <span>Tình trạng:</span> <?php if ($_smarty_tpl->tpl_vars['read_product']->value['quantity']>0){?> Còn hàng<?php }else{ ?> Hết Hàng <?php }?></div>
    <form method="post" action="/orders/cart_sm.php" enctype="multipart/form-data" name="detail">
      <div class="cart">
        <div>SL:
          <input type="hidden" name="data[id]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['alias'];?>
" />
          <input type="text" name="data[quantity]" size="2" value="<?php echo $_smarty_tpl->tpl_vars['quantity']->value;?>
" />
          <label>Size:
                <select name="data[size]">
                <?php  $_smarty_tpl->tpl_vars['size'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['size']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list_size']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['size']->key => $_smarty_tpl->tpl_vars['size']->value){
$_smarty_tpl->tpl_vars['size']->_loop = true;
?>
                    <option  value="<?php echo $_smarty_tpl->tpl_vars['size']->value;?>
"  ><?php echo $_smarty_tpl->tpl_vars['size']->value;?>
</option>
                <?php } ?>
                </select>
          </label>
          &nbsp;
          <input type="submit" value="Đặt hàng" id="button-cart" class="button" /><br />
          <span style="margin-left:160px">&nbsp;&nbsp;- OR -&nbsp;&nbsp;</span> <span class="links"><a>Sản phẩm yêu thích</a><br />
          <a>So sánh</a></span> </div>
      </div>
    </form>
    <div class="review" >
      <div class="stars1" style="width:<?php echo $_smarty_tpl->tpl_vars['percent']->value;?>
%;"><span></span></div>
      <div><a><?php echo $_smarty_tpl->tpl_vars['comments']->value;?>
 Đánh giá</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a>Viết đánh giá</a></div>
      <div class="share"><img src="/templates/images/share2.png" alt="" /></div>
    </div>
  </div>
</div>
<div id="tabs" class="htabs"> <a href="#tab-description">Chi tiết</a> <a href="#tab-specification">Thông tin</a> <span><a href="#tab-review">Đánh giá (<?php echo count($_smarty_tpl->tpl_vars['list_review']->value);?>
)</a> </span> </div>
<div id="tab-description" class="tab-content">
  <div class="cpt_product_description ">
    <div>
      <p><?php echo $_smarty_tpl->tpl_vars['read_product']->value['info'];?>
</p>
    </div>
  </div>
</div>
<div id="tab-specification" class="tab-content">
  <div class="cpt_product_description ">
    <div>
      <p><?php echo $_smarty_tpl->tpl_vars['read_product']->value['info'];?>
</p>
    </div>
  </div>
</div>
<form action="/products/cart_review.php" method="post" id="ratingsForm">
  <div id="tab-review" class="tab-content">
    <h2 id="review-title">Viết đánh giá</h2>
    <b>Tên của bạn:</b><br />
    <input type="text" name="data[name_user]" value="<?php echo (($tmp = @$_SESSION['data_user']['name_user'])===null||$tmp==='' ? '' : $tmp);?>
"/>
    <br />
    <br />
    <b>Nhận xét:</b>
    <textarea name="data[content]" cols="40" rows="8" style="width: 98%;"><?php echo (($tmp = @$_SESSION['data_user']['content'])===null||$tmp==='' ? '' : $tmp);?>
</textarea>
    <input type="hidden" name="data[product_id]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['id'];?>
" />
    <span style="font-size: 11px;"><span style="color: #FF0000;">Lưu ý:</span> Không hỗ trợ HTML!</span><br />
    <br />
    <span style="font-size:20px;">Nhận xét :</span>
    <div class="stars" style="display:block">
      <input type="radio" name="data[review]" class="star-1" id="star-1" value="1"/>
      <label class="star-1" for="star-1">1</label>
      <input type="radio" name="data[review]" class="star-2" id="star-2" value="2" />
      <label class="star-2" for="star-2">2</label>
      <input type="radio" name="data[review]" class="star-3" id="star-3" value="3"/>
      <label class="star-3" for="star-3">3</label>
      <input type="radio" name="data[review]" class="star-4" id="star-4" value="4"/>
      <label class="star-4" for="star-4">4</label>
      <input type="radio" name="data[review]" class="star-5" id="star-5" value="5"/>
      <label class="star-5" for="star-5">5</label>
      <span></span> </div>
    <br />
    <div class="buttons" id="add-sticky">
      <div class="right" >
        <input id="button-review" class="button" type="submit" name="submit" value="Gửi đánh giá"/>
      </div>
    </div>
    <hr />
    <?php  $_smarty_tpl->tpl_vars['review'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['review']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list_review']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['review']->key => $_smarty_tpl->tpl_vars['review']->value){
$_smarty_tpl->tpl_vars['review']->_loop = true;
?>
    <div class="review-list">
    <div><img src="/upload/icon/unnamed.png"  style="border-radius:50%;float:left;"/></div>
      <div class="author" style="margin-left:20px"><b><?php echo $_smarty_tpl->tpl_vars['review']->value['name_user'];?>
</b>&nbsp;&nbsp;<span style="color:#999;font-size:11px;display:inline-block"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['review']->value['day_time'],'%d-%m-%Y');?>
</span>
      <div class="text" style="margin-left:40px"><?php echo $_smarty_tpl->tpl_vars['review']->value['content'];?>
</div>
      </div>
      
    </div>
    <?php } ?>
    <div class="pagination">
      <div class="results">Hiển thị 1 đến 1 ở 1 (1 Trang)</div>
    </div>
  </div>
</form>
<div> 
  <script type="text/javascript"><!--
$('#carousel-p ul').jcarousel({
	vertical: false,
	visible: 3,
	scroll: 1
});
$('.colorbox').colorbox({
		overlayClose: true,
		opacity: 0.4,
		rel: "colorbox"
	});

//--></script> 
  <!-- InstanceEndEditable --> 
  </div>
  </div>
<?php }} ?>